<?php
/*
e107Shop Gen 2 rev 1 - Daniel Hewes - http://www.myTipper.com
*/
/******************************************************************************
* Admin menu Page
*****************************************************************************/

global $pageid;

   $menutitle  = lan_admin_menu_title_main;

   $butname[]  = lan_admin_menu_index;
   $butlink[]  = "admin_e107shop_index.php";
   $butid[]    = "index";

   for ($i=0; $i<count($butname); $i++) {
      $var[$butid[$i]]['text'] = $butname[$i];
      $var[$butid[$i]]['link'] = $butlink[$i];
   };
   
   $menutitle  = lan_admin_menu_title_settings;
   
   $butname = array();
   $butlink = array();
   $butid = array();

   $butname[]  = lan_admin_menu_index;
   $butlink[]  = "admin_e107shop_index.php";
   $butid[]    = "index";

   $butname[]  = lan_admin_menu_settings;
   $butlink[]  = "admin_main_config.php";
   $butid[]    = "mainconfig";
   
   $butname[]  = lan_admin_menu_advanced;
   $butlink[]  = "admin_config_advanced.php";
   $butid[]    = "advanced";
   
   $butname[]  = lan_admin_menu_validation;
   $butlink[]  = "admin_manage_validation.php";
   $butid[]    = "validation";

   for ($i=0; $i<count($butname); $i++) {
      $var2[$butid[$i]]['text'] = $butname[$i];
      $var2[$butid[$i]]['link'] = $butlink[$i];
   };

   show_admin_menu($menutitle, $pageid, $var2);

   $menutitle  = lan_admin_menu_title_products;
   
   $butname = array();
   $butlink = array();
   $butid = array();

   $butname[]  = lan_admin_menu_categories;
   $butlink[]  = "admin_manage_categories.php";
   $butid[]    = "categories";

   $butname[]  = lan_admin_menu_products;
   $butlink[]  = "admin_manage_products.php";
   $butid[]    = "products";
   
   $butname[]  = lan_admin_menu_options;
   $butlink[]  = "admin_manage_attributes.php";
   $butid[]    = "options";

   for ($i=0; $i<count($butname); $i++) {
      $var3[$butid[$i]]['text'] = $butname[$i];
      $var3[$butid[$i]]['link'] = $butlink[$i];
   };
   
   show_admin_menu($menutitle, $pageid, $var3);

   $menutitle  = lan_admin_menu_title_logistics;
   
   $butname = array();
   $butlink = array();
   $butid = array();

   $butname[]  = lan_admin_menu_gateway;
   $butlink[]  = "admin_manage_gateways.php";
   $butid[]    = "gateway";

   $butname[]  = lan_admin_menu_post;
   $butlink[]  = "admin_manage_regions.php";
   $butid[]    = "regios";
   
   for ($i=0; $i<count($butname); $i++) {
      $var4[$butid[$i]]['text'] = $butname[$i];
      $var4[$butid[$i]]['link'] = $butlink[$i];
   };

   show_admin_menu($menutitle, $pageid, $var4);
   
   $menutitle  = lan_admin_menu_title_sales;
   
   $butname = array();
   $butlink = array();
   $butid = array();

   $butname[]  = lan_admin_menu_order_feature;
   $butlink[]  = "admin_manage_ordered_features.php";
   $butid[]    = "features";

   $butname[]  = lan_admin_menu_coupons;
   $butlink[]  = "admin_manage_coupons.php";
   $butid[]    = "coupons";
   
   $butname[]  = lan_admin_menu_sales;
   $butlink[]  = "admin_manage_orders.php";
   $butid[]    = "orders";
   
   for ($i=0; $i<count($butname); $i++) {
      $var5[$butid[$i]]['text'] = $butname[$i];
      $var5[$butid[$i]]['link'] = $butlink[$i];
   };

   show_admin_menu($menutitle, $pageid, $var5);
   
   $menutitle  = lan_admin_menu_title_custom;
   
   $butname = array();
   $butlink = array();
   $butid = array();

   $butname[]  = lan_admin_menu_upload;
   $butlink[]  = "admin_upload.php";
   $butid[]    = "upload";

   $butname[]  = lan_admin_menu_custom_function;
   $butlink[]  = "admin_custom_functions.php";
   $butid[]    = "functions";
   
   $butname[]  = lan_admin_menu_custom_content;
   $butlink[]  = "admin_custom_content.php";
   $butid[]    = "content";
   
   for ($i=0; $i<count($butname); $i++) {
      $var6[$butid[$i]]['text'] = $butname[$i];
      $var6[$butid[$i]]['link'] = $butlink[$i];
   };

   show_admin_menu($menutitle, $pageid, $var6);
